<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>微博</title>
<link rel="stylesheet" type="text/css"
	href="<s:url value='/bootstrap/css/bootstrap.css'/>">
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.js"></script>
</head>
<body
	style="background:url(<s:url value='/img/bg.png'/>);background-repeat:no-repeat;background-color: #C0DEED">
	<div class="container">
		<div class="container-fluid"
			style="background: url(img/wash-white-30.png); padding-top: 20px;">
			<div class="col-xs-3">
				<div style="width:100%">
					<div class="well">
						<form action="post.do" style="margin: 0px">
							<textarea rows="4" name="content"
								style="width: 95%; overflow: hidden;"></textarea>
							<button type="submit" class="btn" style="margin-top:5px;">发送微博</button>
						</form>
					</div>
				</div>
				<div style="width:100%">
					<div class="well">
						<p>已关注的用户</p>
						<table class="table">
							<tbody>
								<s:iterator value="follow" id="name">
									<tr>
										<td><s:property value="name" /></td>
										<td><a
											href="unfollow.do?username=<s:property value='name'/>">取消关注</a></td>
									</tr>
								</s:iterator>
							</tbody>
						</table>
					</div>
				</div>
				<div style="width:100%">
					<div class="well">
						<p>未关注的用户</p>
						<table class="table">
							<tbody>
								<s:iterator value="unfollow" id="name">
									<tr>
										<td><s:property value="name" /></td>
										<td><a
											href="follow.do?username=<s:property value='name'/>">关注</a></td>
									</tr>
								</s:iterator>
							</tbody>
						</table>
					</div>
				</div>
				
			</div>
			<div class="col-xs-9" >
					<div class="well">
					<table style="width:100%;">
						<thead>
							<tr>
								<th>用户名</th>
								<th>微博内容</th>
								<th>时间</th>
							</tr>
						</thead>
						<tbody>
								<s:iterator value="postList" id="post">
									<tr>
										<td><s:property value="#post.username" /></td>
										<td><s:property value="#post.content" /></td>
										<td><s:property value="#post.ts" /></td>
									</tr>
								</s:iterator>
							</tbody>
					</table>
					</div>
				</div>
		</div>
	</div>

</body>
</html>